package cn.ch.user.mapper;

import cn.ch.user.domain.User;
import cn.ch.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Why
 * @since 2022-02-14
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据手机号验证是否被注册过了
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 根据logininfo_id 连表查询对应的user
     * @param id
     * @return
     */
    User loadUserByLogininfoId(Long id);
}
